package com.coco.thread.start;

/**
 * 实现线程的方式一 集成Thread 类型
 */
public class WayThread01 {

    public static class MyThread extends Thread{
        @Override
        public void run() {
            String threadName = Thread.currentThread().getName();
            System.out.println("working by Thread..."+threadName);
        }
    }

    public static void main(String[] args) {
        MyThread thread = new MyThread();
        thread.start();
    }

}
